package pojo;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.alibaba.fastjson.annotation.JSONField;

/*电子图书条目表 */

public class Ebook_entry {
	//编号
	private int id;
	//分类编号
	private int categoryId;
	//图书名称
	private String title;
	//摘要
	private String summary;
	//上传人
	private String uploaduser;
	/**
	 *  上传时间 需要在springmvc-servlet.xml
	 *  配置mvc:annotation-driven才能使用下注解
	 *  下注解为处理数据库时间返回格式设置  但是不能处理页面时间显示
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@JSONField(format="yyyy-MM-dd")
	private Date createdate;
	
	public Ebook_category getEbook() {
		return ebook;
	}
	public void setEbook(Ebook_category ebook) {
		this.ebook = ebook;
	}
	
	private Ebook_category ebook;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getCategoryId() {
		return categoryId;
	}
	public void setCategoryId(int categoryId) {
		this.categoryId = categoryId;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getSummary() {
		return summary;
	}
	public void setSummary(String summary) {
		this.summary = summary;
	}
	public String getUploaduser() {
		return uploaduser;
	}
	public void setUploaduser(String uploaduser) {
		this.uploaduser = uploaduser;
	}
	public Date getCreatedate() {
		return createdate;
	}
	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}
	
	
}
